<?php


namespace Modules\Chinadmin\Models;

use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Support\Facades\Auth;

/**
 * 账号模型
 * Class AccountModel
 * @package Modules\Chinadmin\Models
 */
class FileDataModel extends Authenticatable
{
    public $table = 'ca_file_data';
    public $primaryKey = 'id';



    /**
     * 上级公司
     */
    public function p_company(){
        return $this->hasOne('Modules\Chinadmin\Models\CompanyModel','company_id','company_id');
    }


    /**
     * 部门
     */
    public function p_department(){
        return $this->hasOne('Modules\Chinadmin\Models\DepartmentModel','department_id','department_id');
    }

}
